package com.design.pattern.adapter;

/**
 * @author wangyingjie
 * @date
 * @remark
 */
public class Mp3MediaPlayer implements MediaPlayer {

    Mp3MediaPlayerAdapter mp3MediaPlayerAdapter;

    @Override
    public void play(String mediaType,String filename) {
        if (mediaType.equals("mp3")){
            System.out.println("MP3 Play:"+filename);
        }else {
            mp3MediaPlayerAdapter.play(mediaType,filename);
        }
    }
}
